#include <linux/version.h>
#include <linux/module.h>
#include <linux/device.h>

#include "moddefs.h"
#include "chdev.h"

int device_major	= DEVICE_MAJOR;
int device_nums		= DEVICE_NUMS;

module_param(device_major, int, 0);
module_param(device_nums, int, 0);

static int __init mapmod_insmod(void)
{
	cdev_initialize();
	return 0;
}

static void __exit mapmod_rmmod(void)
{
	cdev_deinitialize();
	return;
}

module_init( mapmod_insmod );
module_exit( mapmod_rmmod );

MODULE_LICENSE( "GPL" );
MODULE_AUTHOR( MAPMOD_AUTHOR );
MODULE_DESCRIPTION( MAPMOD_INFO );
